﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace Sublimation
{
    public class EnergyRing: GameObject
    {
        protected Vector2 initialPosition;
        protected Boolean mouving;
        protected Tower owner;

        public EnergyRing(WorldProperties worldProperties, Tower owner) :
            base(worldProperties)
        {
            LoadContent();
            origin = new Vector2(20, 5);
            mouving = false;

            // make sure it loads and draws
            Scale = 1.0f;
            DrawOrder = 51;
            UpdateOrder = 49;
            Visible = true;
            Enabled = true;
            
            this.position = owner.Position;
            this.initialPosition = owner.Position;
            this.owner = owner;
        }
        protected override void LoadContent()
        { 
            base.LoadContent();
            Sprite = Game.Content.Load<Texture2D>("Sprites\\ring");
        }
    }
}
